<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>Vue 测试实例 - 菜鸟教程(runoob.com)</title>
<script src="https://cdn.staticfile.org/vue/3.2.36/vue.global.min.js"></script>
</head>
<style>
  .a1{
    background: #666666;
    color: #000000;
  }
</style>
<body>
<div id="hello-vue" class="demo">
  <div v-for="item in items">
    {{item}}
    班级：{{item.class}}
    专业：{{item.P}}
  </div>
</div>

<script>
const app =  Vue.createApp({
  data() {
    return {
      items:[
        {class:1,P:"aaa"},
        {class:2,P:"bbb"},
        {class:3,P:"ccc"},
      ]
    }
  }
}).mount('#hello-vue')
</script>
</body>
</html>
